package com.zuo.dao;

import java.util.List;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import com.zuo.model.User;
@Component
@Repository("userMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);
    
    User selectByUserName(String username);
    
    List<User> getUsers();
    
    int updateByUserName(User record);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}